package com.qianfeng.openplatform.webmaster.entry;

/**
 * @author 江江
 * @Date 2020/7/22 18:51
 */
public class OpenApiMaster {
    private String message;
    private boolean status;

    private OpenApiMaster() {
        this.status=true;//表示成功
    }

    private OpenApiMaster(String message, boolean status) {
        this.message = message;
        this.status = status;
    }

    private OpenApiMaster(String message) {
        this.message = message;
        this.status = false;//表示失败
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
    //如果成功
    public static OpenApiMaster ok(){
        return new OpenApiMaster();
    }

    //如果shibai
    public static OpenApiMaster error(String message){
        return new OpenApiMaster(message);
    }

    public static OpenApiMaster full(String message,boolean status){
        return new OpenApiMaster(message,status);
    }
}

